package com.itheima.clientAndService01;

public class MainClass02 {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        arrPrint(arr);
        System.out.println("我有一只小毛驴");
    }

    private static void arrPrint(int[] arr) {
        try{
            System.out.println(arr[10]);
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println("系统异常！");
        }
    }
}
